using System;
using NHibernate;
using NHibernate.Criterion;
using NHibernate.Type;

namespace TelerikMvcGridCustomBindingHelper.NHibernate.Aggregates
{
    [Serializable]
    internal class BetterCountProjection : CountProjection
    {
        public BetterCountProjection(string prop) : base(prop) { }

        public override IType[] GetTypes(ICriteria criteria, ICriteriaQuery criteriaQuery)
        {
            return new IType[] { NHibernateUtil.Int64 };
        }
    }
}